package com.my.blogapi.vo.param;

import lombok.Data;

@Data
public class PageParams {
    private Integer page = 1;
    private Integer pageSize = 10;
    private Integer tagId;
    private Integer categoryId;
    private String month;
    private String year;

    private String getMoth(){
        if (Integer.parseInt(this.month)>9){
            return this.month;
        }else {
            return "0"+this.month;
        }
    }
}
